#pragma once
#include"RBtree.h"
namespace zcg1
{
	template<class T>
	class myset
	{
    public:
		struct Tofset
		{
			const T& operator()(const T&value)
			{
				return value;
			}
		};
		/*typedef RBTree<T, T, Tofset> Node;*/
		typedef typename RBTree<T, T, Tofset>::iterator iterator;
		pair<iterator, bool>insert(const T&val)
		{
			return _root.Insert(val);
		}
		iterator begin()
		{
			return _root.begin();
		}
		iterator end()
		{
			return _root.end();
		}
		void InOrder()
		{
			_root.InOreder();
		}
	
	private:
		RBTree<T, T, Tofset> _root ;
	};
}
